package com.y.fund.domain.com;

import org.hibernate.annotations.GenericGenerator;

import com.y.fund.aacore.abs.TimeObj;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name="co16_dict_data")
@GenericGenerator(name="assignGenerator", strategy="assigned")
@Schema(title ="字典数据")
public class CO16DictData extends TimeObj {

    @Column(name = "cate_id", length=64, nullable=false)
    @Schema(title = "字典数据分类ID，必填")
    private String cateId;
    
    @Column(name = "cate_name", length=64, nullable=false)
    @Schema(title = "字典数据分类名称，必填")
    private String cateName;
    
    @Column(name = "data_val", length=64, nullable=false)
    @Schema(title = "数据值")
    private String dataVal;

    @Column(name = "data_name", length=64, nullable=false)
    @Schema(title = "数据名称")
    private String dataName;

    @Column(name = "d_sort")
    @Schema(title = "排序字段，越小越靠前；默认设置为90")
    private Integer sort;

    @Column(name = "is_enabled", nullable=false)
    @Schema(title = "是否可用")
    private Integer isEnabled;

	@Schema(title = "是否内置，内置的不可修改、禁用或删除。 1：内置；0:|null：非内置")
	@Column(name="is_builtin", updatable=false)
	private Integer builtin;


}
